package com.karolak.web.saf.command.scoped;

import com.karolak.service.Service;
import com.karolak.web.saf.action.ModelAction;
import com.karolak.web.saf.command.AddCommand;

public class ScopedAddCommand extends AddCommand {

	@Override
	public <T, Id, S extends Service<T, Id>> void prepare(ModelAction<T, Id, S> action) {
		action.getSession().remove(action.getScopeKey());
	}
}
